package com.his.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@ApiModel("员工登录信息")
public class LoginUserForm {

    /**
     * 员工工号
     */
    @NotNull(message = "员工工号不能为空")
    @Size(min = 5,message = "员工工号至少为5位")
    @ApiModelProperty("员工工号")
    private Integer userJobNum;

    /**
     * 登录密码
     */
    @NotNull(message = "登陆密码不得为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{5,10}",message = "登录密码至少6位，不得超过10位")
    @ApiModelProperty("登录密码")
    private String userPassword;

}
